<?php
	echo $flashChart->begin();
    $flashChart->setTitle('Steppometer','{color:#880a88;font-size:35px;padding-bottom:20px;}');
    $flashChart->setData(array(2,4,8,16), '{n}.Day.count', 'Default.{n}.Day.date' );
    $flashChart->setLegend('x','Date');
    $flashChart->setLegend('y','Steps', '{color:#AA0aFF;font-size:40px;}' );
    $flashChart->axis('x',array('tick_height' => 10,'3d' => -10));
    $flashChart->axis('y',array('range' => array(0,10000,1000)));
    echo $flashChart->pie();
    echo $flashChart->render(500,500);
	
	$flashChart->setData(array(1,2,4,8), '{n}', false, 'Number of Responses', 'bar');
	$flashChart->setTitle('Bar Chart');
	echo $flashChart->chart('bar', array(), 'Number of Responses', 'bar');
	echo $flashChart->render(300, 300, 'bar');

	$flashChart->setData(array(3,4,6,9),'{n}',false,'Potatoes');
	$flashChart->setTitle('Veggies');
	echo $flashChart->chart('line',array('colour'=>'#cc3355'),'Potatoes');
	echo $flashChart->render(400,400);
	
	$flashChart->setTitle('Fruits');
	$flashChart->setData(array(1,2,4,8),'{n}',false,'Apples','dig');		
	$flashChart->setData(array(3,4,6,9),'{n}',false,'Oranges','dig');
	echo $flashChart->chart('line',array('colour'=>'#33cc33'),'Apples','dig');
	echo $flashChart->chart('line',array('colour'=>'#ccaa44'),'Oranges','dig');	
	echo $flashChart->render(500,500,'dig');
 ?>